
(function() {
	var LayoutH = function(em) {
		this.__init(em);
	}
	LayoutH.prototype.__init = function(center, left, right) {
		if (typeof(em) == "string") {
			em = document.getElementById(em);
		}
		this.target = G(em);
		this.target.bind("onresize", this.on_resize);
		this.boxes = {
			head: null,
			bottom: null,
			vcenter: null,
			left: null,
			right: null,
			hcenter: null
		}

		for (var i = 0; i < em.childNodes.length; i++) {
			var id = em.childNodes[i].id;
		}
		for (n in em.childNodes) {
			console.log(n);
			console.log(em.childNodes[n].id);
		}
	}

	Layout.prototype.on_resize = function() {
		console.log("resize");
	}

	G.Layout = Layout;
})();
